.class public Lrexsee/activity/RexseeActivity;
.super Landroid/app/Activity;
.source "RexseeActivity.java"


# instance fields
.field protected layout:Lrexsee/core/layout/Layout;

.field private orientation:I


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 15
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    return-void
.end method


# virtual methods
.method protected final onActivityResult(IILandroid/content/Intent;)V
    .locals 1
    .param p1, "requestCode"    # I
    .param p2, "resultCode"    # I
    .param p3, "data"    # Landroid/content/Intent;

    .prologue
    .line 65
    iget-object v0, p0, Lrexsee/activity/RexseeActivity;->layout:Lrexsee/core/layout/Layout;

    iget-object v0, v0, Lrexsee/core/layout/Layout;->browser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->activityResult:Lrexsee/core/browser/clazz/ActivityResult;

    invoke-virtual {v0, p1, p2, p3}, Lrexsee/core/browser/clazz/ActivityResult;->run(IILandroid/content/Intent;)V

    .line 66
    return-void
.end method

.method public final onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 5
    .param p1, "newConfig"    # Landroid/content/res/Configuration;

    .prologue
    .line 69
    invoke-super {p0, p1}, Landroid/app/Activity;->onConfigurationChanged(Landroid/content/res/Configuration;)V

    .line 70
    iget v0, p0, Lrexsee/activity/RexseeActivity;->orientation:I

    iget v1, p1, Landroid/content/res/Configuration;->orientation:I

    if-eq v0, v1, :cond_0

    .line 71
    iget v0, p1, Landroid/content/res/Configuration;->orientation:I

    iput v0, p0, Lrexsee/activity/RexseeActivity;->orientation:I

    .line 72
    iget-object v0, p0, Lrexsee/activity/RexseeActivity;->layout:Lrexsee/core/layout/Layout;

    iget-object v0, v0, Lrexsee/core/layout/Layout;->browser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->eventList:Lrexsee/core/browser/clazz/EventList;

    const-string v1, "onScreenOrientationChanged"

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/String;

    const/4 v3, 0x0

    iget v4, p0, Lrexsee/activity/RexseeActivity;->orientation:I

    invoke-static {v4}, Lrexsee/core/application/RexseeConfiguration;->getOrientation(I)Ljava/lang/String;

    move-result-object v4

    aput-object v4, v2, v3

    invoke-virtual {v0, v1, v2}, Lrexsee/core/browser/clazz/EventList;->run(Ljava/lang/String;[Ljava/lang/String;)V

    .line 74
    :cond_0
    return-void
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 2
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 24
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 26
    invoke-virtual {p0}, Lrexsee/activity/RexseeActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v0

    iget v0, v0, Landroid/content/res/Configuration;->orientation:I

    iput v0, p0, Lrexsee/activity/RexseeActivity;->orientation:I

    .line 28
    invoke-static {p0}, Lrexsee/core/lang/RexseeLanguageInterface;->init(Landroid/content/Context;)V

    .line 29
    new-instance v0, Lrexsee/core/layout/Layout;

    invoke-direct {v0, p0}, Lrexsee/core/layout/Layout;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lrexsee/activity/RexseeActivity;->layout:Lrexsee/core/layout/Layout;

    .line 30
    iget-object v0, p0, Lrexsee/activity/RexseeActivity;->layout:Lrexsee/core/layout/Layout;

    invoke-virtual {p0, v0}, Lrexsee/activity/RexseeActivity;->setContentView(Landroid/view/View;)V

    .line 32
    iget-object v0, p0, Lrexsee/activity/RexseeActivity;->layout:Lrexsee/core/layout/Layout;

    iget-object v0, v0, Lrexsee/core/layout/Layout;->browser:Lrexsee/core/browser/Browser;

    invoke-static {v0}, Lrexsee/activity/RexseeActivityInit;->initMenu(Lrexsee/core/browser/Browser;)V

    .line 33
    iget-object v0, p0, Lrexsee/activity/RexseeActivity;->layout:Lrexsee/core/layout/Layout;

    invoke-static {v0}, Lrexsee/activity/RexseeActivityInit;->initJavaScriptInterface(Lrexsee/core/browser/clazz/RootViewInterface;)V

    .line 34
    iget-object v0, p0, Lrexsee/activity/RexseeActivity;->layout:Lrexsee/core/layout/Layout;

    invoke-static {v0}, Lrexsee/activity/RexseeActivityInit;->initDefaultLayoutJavaScriptInterface(Lrexsee/core/layout/Layout;)V

    .line 35
    iget-object v0, p0, Lrexsee/activity/RexseeActivity;->layout:Lrexsee/core/layout/Layout;

    iget-object v0, v0, Lrexsee/core/layout/Layout;->browser:Lrexsee/core/browser/Browser;

    invoke-static {v0}, Lrexsee/activity/RexseeActivityInit;->initUserAgent(Lrexsee/core/browser/Browser;)V

    .line 36
    iget-object v0, p0, Lrexsee/activity/RexseeActivity;->layout:Lrexsee/core/layout/Layout;

    iget-object v0, v0, Lrexsee/core/layout/Layout;->browser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/activity/RexseeActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-static {v0, v1}, Lrexsee/activity/RexseeActivityInit;->initPage(Lrexsee/core/browser/Browser;Landroid/content/Intent;)V

    .line 38
    return-void
.end method

.method protected final onDestroy()V
    .locals 1

    .prologue
    .line 58
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 59
    iget-object v0, p0, Lrexsee/activity/RexseeActivity;->layout:Lrexsee/core/layout/Layout;

    iget-object v0, v0, Lrexsee/core/layout/Layout;->browser:Lrexsee/core/browser/Browser;

    invoke-virtual {v0}, Lrexsee/core/browser/Browser;->stopLoading()V

    .line 60
    iget-object v0, p0, Lrexsee/activity/RexseeActivity;->layout:Lrexsee/core/layout/Layout;

    iget-object v0, v0, Lrexsee/core/layout/Layout;->browser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->destroyListeners:Lrexsee/core/browser/clazz/DestroyListeners;

    invoke-virtual {v0}, Lrexsee/core/browser/clazz/DestroyListeners;->run()V

    .line 61
    iget-object v0, p0, Lrexsee/activity/RexseeActivity;->layout:Lrexsee/core/layout/Layout;

    iget-object v0, v0, Lrexsee/core/layout/Layout;->browser:Lrexsee/core/browser/Browser;

    invoke-virtual {v0}, Lrexsee/core/browser/Browser;->destroy()V

    .line 62
    return-void
.end method

.method public final onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 1
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    .line 100
    iget-object v0, p0, Lrexsee/activity/RexseeActivity;->layout:Lrexsee/core/layout/Layout;

    iget-object v0, v0, Lrexsee/core/layout/Layout;->browser:Lrexsee/core/browser/Browser;

    invoke-virtual {v0, p1, p2}, Lrexsee/core/browser/Browser;->onKeyDown(ILandroid/view/KeyEvent;)Z

    .line 101
    const/4 v0, 0x1

    return v0
.end method

.method public final onKeyUp(ILandroid/view/KeyEvent;)Z
    .locals 1
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    .line 105
    iget-object v0, p0, Lrexsee/activity/RexseeActivity;->layout:Lrexsee/core/layout/Layout;

    iget-object v0, v0, Lrexsee/core/layout/Layout;->browser:Lrexsee/core/browser/Browser;

    invoke-virtual {v0, p1, p2}, Lrexsee/core/browser/Browser;->onKeyUp(ILandroid/view/KeyEvent;)Z

    .line 106
    const/4 v0, 0x1

    return v0
.end method

.method public onLowMemory()V
    .locals 1

    .prologue
    .line 110
    invoke-super {p0}, Landroid/app/Activity;->onLowMemory()V

    .line 111
    iget-object v0, p0, Lrexsee/activity/RexseeActivity;->layout:Lrexsee/core/layout/Layout;

    iget-object v0, v0, Lrexsee/core/layout/Layout;->browser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->garbageCollector:Lrexsee/core/browser/RexseeGarbageCollector;

    invoke-virtual {v0}, Lrexsee/core/browser/RexseeGarbageCollector;->freeMemory()V

    .line 112
    return-void
.end method

.method protected final onNewIntent(Landroid/content/Intent;)V
    .locals 1
    .param p1, "intent"    # Landroid/content/Intent;

    .prologue
    .line 43
    invoke-super {p0, p1}, Landroid/app/Activity;->onNewIntent(Landroid/content/Intent;)V

    .line 44
    iget-object v0, p0, Lrexsee/activity/RexseeActivity;->layout:Lrexsee/core/layout/Layout;

    iget-object v0, v0, Lrexsee/core/layout/Layout;->browser:Lrexsee/core/browser/Browser;

    invoke-static {v0, p1}, Lrexsee/activity/RexseeActivityInit;->initPage(Lrexsee/core/browser/Browser;Landroid/content/Intent;)V

    .line 45
    return-void
.end method

.method public final onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 1
    .param p1, "item"    # Landroid/view/MenuItem;

    .prologue
    .line 86
    :try_start_0
    iget-object v0, p0, Lrexsee/activity/RexseeActivity;->layout:Lrexsee/core/layout/Layout;

    iget-object v0, v0, Lrexsee/core/layout/Layout;->browser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->menu:Lrexsee/core/menu/RexseeMenu;

    invoke-virtual {v0, p1}, Lrexsee/core/menu/RexseeMenu;->clickOptionsMenu(Landroid/view/MenuItem;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 89
    :goto_0
    const/4 v0, 0x0

    return v0

    .line 87
    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public final onOptionsMenuClosed(Landroid/view/Menu;)V
    .locals 2
    .param p1, "menu"    # Landroid/view/Menu;

    .prologue
    .line 94
    :try_start_0
    iget-object v0, p0, Lrexsee/activity/RexseeActivity;->layout:Lrexsee/core/layout/Layout;

    iget-object v0, v0, Lrexsee/core/layout/Layout;->browser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->menu:Lrexsee/core/menu/RexseeMenu;

    const/4 v1, 0x0

    iput-boolean v1, v0, Lrexsee/core/menu/RexseeMenu;->isOptionsMenuOpen:Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 97
    :goto_0
    return-void

    .line 95
    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method protected final onPause()V
    .locals 1

    .prologue
    .line 48
    invoke-super {p0}, Landroid/app/Activity;->onPause()V

    .line 49
    iget-object v0, p0, Lrexsee/activity/RexseeActivity;->layout:Lrexsee/core/layout/Layout;

    iget-object v0, v0, Lrexsee/core/layout/Layout;->browser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->pauseListeners:Lrexsee/core/browser/clazz/PauseListeners;

    invoke-virtual {v0}, Lrexsee/core/browser/clazz/PauseListeners;->run()V

    .line 50
    return-void
.end method

.method public final onPrepareOptionsMenu(Landroid/view/Menu;)Z
    .locals 1
    .param p1, "menu"    # Landroid/view/Menu;

    .prologue
    .line 78
    :try_start_0
    iget-object v0, p0, Lrexsee/activity/RexseeActivity;->layout:Lrexsee/core/layout/Layout;

    iget-object v0, v0, Lrexsee/core/layout/Layout;->browser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->menu:Lrexsee/core/menu/RexseeMenu;

    invoke-virtual {v0, p1}, Lrexsee/core/menu/RexseeMenu;->composeOptionsMenu(Landroid/view/Menu;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 81
    :goto_0
    const/4 v0, 0x1

    return v0

    .line 79
    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method protected final onResume()V
    .locals 1

    .prologue
    .line 53
    invoke-super {p0}, Landroid/app/Activity;->onResume()V

    .line 54
    iget-object v0, p0, Lrexsee/activity/RexseeActivity;->layout:Lrexsee/core/layout/Layout;

    iget-object v0, v0, Lrexsee/core/layout/Layout;->browser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->resumeListeners:Lrexsee/core/browser/clazz/ResumeListeners;

    invoke-virtual {v0}, Lrexsee/core/browser/clazz/ResumeListeners;->run()V

    .line 55
    return-void
.end method
